/**
 *  
 *  Copyright (c) 2011,
 *  skyduck
 *  All rights reserved.
 *   
 *  @file       GameConfig.h
 *  @brief      各种游戏配置
 *   
 *   
 *  @version    1.0.0
 *  @author     tangzhihua
 *  @date       20111202
 *   
 *   
 *  修订说明：最初版本  
 */

#ifndef __GAME_CONFIG_H
#define __GAME_CONFIG_H



#define kScreenTypeBase 0
typedef enum ScreenType {
	kScreenTypeMainMenu       = kScreenTypeBase + 0,   /// 游戏主菜单
	kScreenTypeSetting        = kScreenTypeBase + 100, /// 游戏设置界面
	kScreenTypeLevelSelect    = kScreenTypeBase + 200, /// 关卡选择界面
	kScreenTypeHelp           = kScreenTypeBase + 300, /// 游戏帮助界面
	kScreenTypeGameRun        = kScreenTypeBase + 400, /// 游戏运行界面
	kScreenTypeWeaponUpgrades = kScreenTypeBase + 500  /// 武器升级界面
}ScreenType_st;

//
// Supported Autorotations:
//		None,
//		UIViewController,
//		CCDirector
//
#define kGameAutorotationNone 0
#define kGameAutorotationCCDirector 1
#define kGameAutorotationUIViewController 2

//
// Define here the type of autorotation that you want for your game
//

// 3rd generation and newer devices: Rotate using UIViewController. Rotation should be supported on iPad apps.
// TIP:
// To improve the performance, you should set this value to "kGameAutorotationNone" or "kGameAutorotationCCDirector"
#if defined(__ARM_NEON__) || TARGET_IPHONE_SIMULATOR
#define GAME_AUTOROTATION kGameAutorotationUIViewController

// ARMv6 (1st and 2nd generation devices): Don't rotate. It is very expensive
#elif __arm__
#define GAME_AUTOROTATION kGameAutorotationNone


// Ignore this value on Mac
#elif defined(__MAC_OS_X_VERSION_MAX_ALLOWED)

#else
#error(unknown architecture)
#endif

#endif // __GAME_CONFIG_H

